package com.example.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.example.domain.StudentScore;

@Repository
public interface StudentScoreDao extends JpaRepository<StudentScore, Integer> {

    @Transactional
    @Modifying
    Integer deleteByStudentScoreId(Integer parseInt);

    List<StudentScore> findByStudentScoreId(Integer parseInt);

    @Transactional
    @Modifying
    Integer deleteByStudentScoreIdIn(List<Integer> listId);

}
